{% if error %}
<h1>Error {{ error }}</h1>
{% endif %}

<h1>Project {{ project }} User {{ user }} Document {{ document }}</h1>
    {% if document.requirement_set.count %}
        {% for requirement in document.requirement_set.all %}
            <li><a href="{{ requirement.pk }}">{{ requirement.unique }}</a> {{ requirement.parts }}</li>
        {% endfor %}
    {% else %}
        <li>Sorry, no requirements.</li>
    {% endif %}
   <h2>Create New Requirement</h2>
      <form method="post" action="">
      <br><label>New requirement</label><input type="text" name="new_requirement"/>
      <br><input type="submit" value="Done"/> 
      </form>
  
<h2><a href="/rat/project/{{project.pk}}/">Select a different document</h2>
<h2><a href="/rat/">Select a different project</h2>
<h2><a href="/accounts/profile/">Do some other RAT task</h2>
